<div id="tabcontainer">
    <ul>
       <li><a href="<?php echo base_url."index.php?mod=product&act=list"?>" >Sản phẩm</a></li>
       <li><a href="<?php echo base_url."index.php?mod=meterials&act=list"?>">Nguyên liệu</a></li>
       <li><a href="<?php echo base_url."index.php?mod=provider&act=list"?>">Nhà cung cấp</a></li>
    </ul>
</div>
<div id="tabsdetail">
    <div id="tab1" class="tabcontents">
      <div class="hd">
           <h2>danh sách nhà cung cấp</h2>
           
           <div class="by" style="margin-left:150px">
               <table class="ds">
                   <thead>
                       <tr>
                           <th>Mã nhà cung cấp</th>
                           <th>Tên nhà cung cấp</th>
                           <th>Địa chỉ</th>
                           <th>Điện thoải</th>
                           <th>Action</th>
                       </tr>
                   </thead>
                   <tbody>
                      <?php foreach($data['list'] as $pro) {?>
                       <tr class="tb1"> 
                           <td><?php echo $pro['manhacungcap']?></td>
                           <td><?php echo $pro['tennhacungcap']?></td>
                           <td><?php echo $pro['diachi']?></td>
                           <td><?php echo $pro['dienthoai']?></td>
                           <td>
                              <a href="<?php echo base_url."index.php?mod=provider&act=edit&uid=".$pro['manhacungcap'].""?>">Sửa</a>
                              <a onclick='return check()' href="<?php echo base_url."index.php?mod=provider&act=delete&uid=".$pro['manhacungcap'].""?>">Xóa</a>
                           </td>
                       </tr>
                      <?php } ?>
                   </tbody>
               </table>
               <div id="pagination"><?php echo $data['pagelist'];?></div>
           </div>
        </div>
        <ul class="add bh">
            <li><a href="<?php echo base_url."index.php?mod=provider&act=add"?>">Thêm</a></li>
        </ul>
    </div>
</div>